package com.netease.b.a;

import com.netease.a.a.e;
import com.netease.framework.a.k;
import com.netease.pris.a.i;
import com.netease.pris.b.a;
import java.io.File;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class f extends j
{
  com.netease.pris.atom.b.b a;

  protected f(int paramInt)
  {
    super(paramInt);
  }

  public static f a()
  {
    return new f(400);
  }

  public static f a(com.netease.pris.atom.b.b paramb)
  {
    f localf = new f(401);
    localf.a = paramb;
    return localf;
  }

  public com.netease.framework.b.b a(Object paramObject, int paramInt1, int paramInt2)
  {
    if ((paramInt2 == 0) && (n() == 400));
    for (Object localObject = new ac(this, paramObject, paramInt1, paramInt2); ; localObject = super.a(paramObject, paramInt1, paramInt2))
      return localObject;
  }

  protected void a(int paramInt, Object paramObject)
  {
    switch (n())
    {
    default:
    case 400:
    }
    label130: 
    while (true)
    {
      c(paramInt, null);
      while (true)
      {
        return;
        if ((paramObject == null) || (!(paramObject instanceof com.netease.f.b)))
          break label130;
        List localList = ((com.netease.f.b)paramObject).d("font");
        if (localList == null)
          break;
        LinkedList localLinkedList = new LinkedList();
        Iterator localIterator = localList.iterator();
        while (localIterator.hasNext())
          localLinkedList.add(new com.netease.pris.atom.b.b((com.netease.f.b)localIterator.next()));
        com.netease.pris.c.b.a(d.h().a(), localLinkedList);
        c(paramInt, localLinkedList);
      }
    }
  }

  public void c()
  {
    if (!a.S())
      d.h().a(this);
    while (true)
    {
      return;
      k localk;
      switch (n())
      {
      default:
      case 400:
        for (localk = null; ; localk = new k(a.M()))
        {
          if (localk != null)
            break label93;
          d(0, null);
          h();
          break;
        }
      case 401:
      }
      a(g.a(this.a.c(), false, false, false));
      continue;
      label93: a(localk);
    }
  }

  public void c(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    File localFile2;
    if ((n() == 401) && (paramObject != null) && ((paramObject instanceof b)))
    {
      b localb = (b)paramObject;
      if (localb.b != null)
      {
        File localFile1 = new File(e.h() + "/fonts");
        if (!localFile1.exists())
          localFile1.mkdirs();
        localFile2 = new File(localb.b);
        if (!i.a(localFile2, this.a.d()))
          break label216;
        File localFile3 = new File(localFile1, localFile2.getName() + ".ttf");
        if (e.a(localFile2, localFile3))
        {
          this.a.e(localFile3.getPath());
          com.netease.pris.c.b.a(d.h().a(), this.a.a(), this.a.f());
          c(paramInt1, this.a);
          return;
        }
        com.netease.g.b.d("pris font", "rename failed");
      }
    }
    while (true)
    {
      c(paramInt1, null);
      break;
      label216: e.a(localFile2);
    }
  }

  public void d(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    d(paramInt1, paramObject);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.f
 * JD-Core Version:    0.6.0
 */